#!/bin/bash
#Run All the algorithms. 
#For every algorithm executing running with different size of data structure 2, 4, .. 128
#For every size of data structure executing algorithm 30 times.
#In every executing one process enter critical section 1000000 times.
for((j=2; j<=128; j= j*2))
do
for((i=1; i<=30; i++))
do
./Bakery "Bakery.txt" $j 1000000
done
done

for((j=2; j<=128; j= j*2))
do
for((i=1; i<=30; i++))
do
./Tour "Tour.txt" $j 1000000
done
done

for((j=2; j<=128; j= j*2))
do
for((i=1; i<=30; i++))
do
./Algo "Algo.txt" $j 1000000
done
done
